package com.peanut.devlibrary.util;

import android.os.Build;

/**
 * 设备信息
 * Created by taransky on 16/3/15.
 */
public class DeviceInfo {
    //网络状态
    public static final String NETWORK_WIFI = "wifi";
    public static final String NETWORK_4G = "4g";
    public static final String NETWORK_3G = "3g";
    public static final String NETWORK_2G = "2g";

    public static final String device = "android";//平台
    public static final String osversion = Build.VERSION.SDK_INT+"";           //系统版本
    public static final String model = Build.MODEL;               //设备名称


    public String mac = "";                 //mac地址
    public String ip = "";                  //ip地址

    public String appversion = "";          //应用版本
    public String screen = "";              //分辨率
    public String network = "";             //网络类型
    public String uuid = "";                //设备唯一码

    @Override
    public String toString() {
        return
                "appversion='" + appversion + '\'' +
                ", \nmac='" + mac + '\'' +
                ", \nip='" + ip + '\'' +
                ", \nscreen='" + screen + '\'' +
                ", \nnetwork='" + network + '\'' +
                ", \nuuid='" + uuid + '\'';
    }
}
